<?php get_header() ?>

    <div class="page_title">

        <div class="container">
            <div class="leaft_title"><h1><?php the_title() ?></h1></div>
            <div class="reght_pagenation">
                <?php if (function_exists('yoast_breadcrumb')) {
                    yoast_breadcrumb('', '');
                } ?>
            </div>
        </div>

    </div><!-- end page title -->

    <div class="clearfix"></div>

    <div class="container">

        <div class="content_fullwidth">
            <?php
            global $paged;
            if (get_query_var('paged'))
                $my_page = get_query_var('paged');
            else {
                if (get_query_var('page'))
                    $my_page = get_query_var('page');
                else
                    $my_page = 1;
                set_query_var('paged', $my_page);
                $paged = $my_page;
            }

            // default loop here, if applicable, followed by wp_reset_query();

            $args = array(
                'posts_per_page' => 6,
                'post_type' => 'testimonial',
                'post_status' => 'publish',
                'order' => 'post_date',
                'orderby' => 'DESC',
                'paged' => $my_page,
            );

            $my_query = new WP_Query($args);
            $i = 1;
            while ($my_query->have_posts()):
                $my_query->the_post();
                ?>

                <div class="testimonials-2 <?php echo ($i % 2 == 0) ? 'last' : '' ?>">
            <span><?php the_content() ?>
            <br/><strong>- <?php the_title() ?></strong>
            <i>(<?php echo strip_tags(get_the_excerpt()) ?>)</i></span>
                </div>
                <!-- end client says -->
                <?php
                $i++;
            endwhile; ?>

        </div>
        <?php
        wp_pagenavi(array('query' => $my_query));
        wp_reset_query();
        ?>

        <div class="clearfix mar_top2"></div>
    </div>


    <div class="clearfix"></div>

<?php get_footer() ?>